using System;
using UnityEngine;

public class BoneMovementData
{
	public int id;

	public float startPointX;

	public float startPointY;

	public float angle;

	public float velocity;

	public float angleCos;

	public float angleTan;

	public float motion_b;

	public float rotation;

	private float gravity = 7f;

	public BoneMovementData(int boneId, float boneStartPointX, float boneStartPointY)
	{
		id = boneId;
		startPointX = boneStartPointX;
		startPointY = boneStartPointY;
		angle = UnityEngine.Random.Range(0f, (float)Math.PI);
		velocity = UnityEngine.Random.Range(0.1f, 0.2f);
		angleCos = Mathf.Cos(angle);
		angleTan = Mathf.Tan(velocity);
		motion_b = -1f * gravity / (2f * Mathf.Pow(velocity, 2f) * Mathf.Pow(Mathf.Cos(angle), 2f));
		rotation = UnityEngine.Random.Range(-10f, 10f);
	}
}
